<!DOCTYPE html>
<!--
To change this license header, choose License Headers in Project Properties.
To change this template file, choose Tools | Templates
and open the template in the editor.
-->
<html>
    <head>
        <meta charset="UTF-8">
        <title></title>
    </head>
    <body>
        <?php
        // put your code here
        include '../component/ComboboxClass.php';
        
        ?>

        <select>
         <?php
         
        // ComboboxClass::showContent("tb_cargo","cod_cargo","cargo");
         
         include '../../db/DataBaseClass.php';
        $content = "";
        $db = new DataBaseClass("localhost:3306", "root", "9651myla", "spc");
        
        $db->executeSQL("SELECT * FROM ".$tbName."");
        
        $result=$db->getResult();

        while ($row = mysql_fetch_array($result)) {
          echo "<option value=\"" . $row[$cod] . "\"> " . $row[$name] . "</option>";
        }
         ?>  
        </select>
        
        <select>
         <?php
        // ComboboxClass::showContent("tb_cargo","cod_cargo","cargo");
         ComboboxClass::showContent("tb_perfil", "cod_perfil", "nome");
         ?>  
        </select>
    </body>
</html>
